import json

months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']

for i in range(len(months)):
	
	monthJSONfile = months[i] + '2020.json'
	monthJSONfileAdd = months[i] + '2020_2.json'

	with open(monthJSONfile, 'r', encoding='utf-8') as json_file:
		data = json.load(json_file)
		print('Original', months[i], 'count:', len(data), '\n')
		#print(data)

	with open(monthJSONfileAdd, 'r', encoding='utf-8') as json_file2:
		data2 = json.load(json_file2)
		print('Original Add', months[i], 'count:', len(data2), '\n')
		#print(data2)

	for x in data2:
		indexNumber = (len(data))
		data[indexNumber] = data2[x]

	print('Count for', months[i], 'after add:', len(data), '\n')


	newMonthFileCombined = months[i] + '2020combined.json'
	monthFile = open(newMonthFileCombined, 'w')
	jsonFile = json.dumps(data)
	monthFile.write(jsonFile)
	monthFile.close()

	print(months[i], 'combined file finished. \n')